#  for循环_九九乘法表第一种形式
for row in range(1,10):
    for col in range(1,row+1):
        print('{}*{}={:<2}'.format(row,col,row*col),end=' ')
    print('')
print('='*50)
print('')

# for循环_九九乘法表第二种形式
for row in range(9,0,-1):
    for col in range(1,row+1):
        print('{}*{}={:<2}'.format(row,col,row*col),end=' ')
    print('')
print('='*50)
print('')

# for循环_九九乘法表第三种形式
for row in range(1,10):
    for m in range(1,10-row):
        print('       ',end='')
    for col in range(1,row+1):
        print('{}*{}={:<2}'.format(row,col,row*col),end=' ')
    print('')

print('='*50)
print('')

# for循环_九九乘法表第四种形式
for row in range(9,0,-1):
    for m in range(1, 10 - row):
        print('       ', end='')
    for col in range(1,row+1):
        print('{}*{}={:<2}'.format(row,col,row*col),end=' ')
    print('')
